# frozen_string_literal: true
class CarsController < ApplicationController
  def index
    @cars =
      if @current_editor.system?
        Car.all.page(page).per(per)
      else
        @current_editor.village.cars.page(page).per(per)
      end
  end
end
